<?php 
class Member extends AppModel 
{
	public $name="Member";
	var $virtualFields = array(
    'full_name' => 'CONCAT(Member.lastname, " ", Member.firstname)');
	/*public $validate = array(
		'code'=>array(
			'r0' => array(
        'required'   => true,
        'allowEmpty' => false,
        // or: 'update'
        'on'         => 'create',
        'message'  => 'Código es requerido'
	    ),	    
		),
 		'dni'=>array(
			'r0' => array(
        'required'   => true,
        'allowEmpty' => false,
        // or: 'update'
        'on'         => 'create',
        'message'  => 'DNI es requerido'
	    ),
	   
		),
		'lastname'=>array(
			'r0' => array(
        'required'   => true,
        'allowEmpty' => false,
        // or: 'update'
        'on'         => 'create',
        'message'  => 'Apellido es requerido'
	    ),
		),
		'firstname'=>array(
			'r0' => array(
        'required'   => true,
        'allowEmpty' => false,
        // or: 'update'
        'on'         => 'create',
        'message'  => 'Nombre es requerido'
	    ),
		),

	);*/

	
}